package cn.sumpu.app.guoguojie.domain;

import java.io.Serializable;
import java.util.Date;

import cn.sumpu.app.guoguojie.util.Common;

public class Visitor implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3951169870044429692L;

	private Integer id;
	
	private String doorplate;
	private String visitMember;
	private String visitUsername;
	private String avatar;
	private String familyAvatar;
	private String family;
	private Date gmtCreated;
	private Date gmtModified;
	
	private String visitTime;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getDoorplate() {
		return doorplate;
	}
	public void setDoorplate(String doorplate) {
		this.doorplate = doorplate;
	}
	public String getVisitMember() {
		return visitMember;
	}
	public void setVisitMember(String visitMember) {
		this.visitMember = visitMember;
	}
	public String getVisitUsername() {
		return visitUsername;
	}
	public void setVisitUsername(String visitUsername) {
		this.visitUsername = visitUsername;
	}
	public String getAvatar() {
		if(Common.empty(avatar)){
			avatar = Common.AVATAR_FAMILY_DEFALUT;
		}
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public String getFamily() {
		return family;
	}
	public void setFamily(String family) {
		this.family = family;
	}
	
	public Date getGmtCreated() {
		return gmtCreated;
	}
	public void setGmtCreated(Date gmtCreated) {
		this.gmtCreated = gmtCreated;
	}
	public Date getGmtModified() {
		return gmtModified;
	}
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
	public String getFamilyAvatar() {
		if(Common.empty(familyAvatar)){
			familyAvatar = Common.AVATAR_FAMILY_DEFALUT;
		}
		return familyAvatar;
	}
	public void setFamilyAvatar(String familyAvatar) {
		this.familyAvatar = familyAvatar;
	}
	public String getVisitTime() {
		return visitTime;
	}
	public void setVisitTime(String visitTime) {
		
		this.visitTime = visitTime;
	}
	
	

}
